/**
 * goods模块接口列表
 */

import base from './base'; // 导入接口域名列表
import axios from '@/utils/http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块

const address = {
        
    addGoodsType(params: any) {
        return axios.post(`${base.address}/addGoodsType`, qs.stringify(params));
    },
    getAddressListById(id: any){
        return axios.get(`${base.address}/getAddressListById/${id}`);
    },
    addAddress(params: any){
        return axios.post(`${base.address}/addAddress`, qs.stringify(params));
    },
    deleteAddress(id: any){
        return axios.delete(`${base.address}/deleteAddress/${id}`);
    },
    editAddress(params: any){
        return axios.post(`${base.address}/editAddress`, qs.stringify(params));
    },
    
}

export default address;